package com.qiyu.model.response.backend;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Description:
 * @Author: wanglei
 * @Date: 2020/8/4 16:24
 * @Modified by:
 */
@Data
@ApiModel
public class AdminPurchaseSpecialtyResp {
    @ApiModelProperty(value = "产品id")
    private Long id;

    @ApiModelProperty(value = "产品标题")
    private String title;

    @ApiModelProperty(value = "略缩图地址")
    private String thumbnail;

    @ApiModelProperty(value = "是否展示详情（可点击）, 1展示 0不展示")
    private Boolean displayContent;

    @ApiModelProperty(value = "地理位置")
    private String location;

    @ApiModelProperty(value = "经度")
    private Double longitude;

    @ApiModelProperty(value = "纬度")
    private Double latitude;

    @ApiModelProperty(value = "所属二级菜单id")
    private Long secondMenuId;

    @ApiModelProperty(value = "价格描述")
    private String price;

    @ApiModelProperty("购买地址")
    private String purchaseUrl;

    @ApiModelProperty("二维码预订地址")
    private String wxCodeUrl;

    @ApiModelProperty("产品类型id")
    private Long productTypeId;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("商品上下架状态：0下架，1上架")
    private Boolean online;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date udpateTime;
}
